package com.lawrence.service.impl;

import com.lawrence.entity.User;
import com.lawrence.service.UserServiceAnno;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class UserServiceAnnoImpl implements UserServiceAnno {

    public List<User> selectAllUser() {
        User user1 = new User(3, "李二", "0221");
        User user2 = new User(4, "李yi", "0222");
        ArrayList<User> list = new ArrayList<User>();
        list.add(user1);
        list.add(user2);
        return list;
    }
}
